﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace Stu_sys.Entity
{
    
    public class Department
    {
        //专业id
        public int DepartmentId { get; set; }

        //专业名称
        public string? DepName { get; set; }

        //专业代码
        public string? DepCode { get; set; }

        //创建时间
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }

        //修改时间
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
